package cn.gzy.mapper;

import cn.gzy.pojo.Attention;
import org.apache.ibatis.annotations.*;

import java.util.List;

@Mapper
public interface AttentionMapper {

    @Insert("INSERT INTO attention (from_user_id, to_user_id, attention_date) VALUES (#{fromUserId}, #{toUserId}, #{attentionDate})")
    @Options(useGeneratedKeys = true, keyProperty = "attentionId", keyColumn = "attention_id")
    Integer insertAttention(Attention attention);
}